home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / WD_SRC.ZIP / BSP_GEN / MAIN.CPP < prev   
C/C++ Source or Header  |  1994-12-31  |  592b  |  26 lines

  1. #include "..\Source\LastWolf.hpp"
  2.  
  3.  
  4. void main( int argc, char *argv[] )
  5. {
  6.     CLineArray lines;
  7.     CPointArray points;
  8.  
  9.     BspCommandLine commandLine;
  10.     
  11.     if( !ProcessCommandLine( argc, argv, &commandLine ) )
  12.     {
  13.         printf("BSP_GEN:  Bsp_Gen <inFile> <outFile> <balanceLevel (0-100)> [<d for Doom level>] [<level number>] [<any character for graphical display>]\n\n");
  14.         return;
  15.     }
  16.  
  17.     GenerateBspTree( &commandLine, &lines, &points );
  18.     lines.UnAllocateElements();
  19.     points.UnAllocateElements();
  20.  
  21.     if( commandLine.bLoadDoomTextures )
  22.         tx_UnloadTextures();    
  23. }
  24.  
  25.  
  26.